package com.softa.web.controller.custom;

import com.softa.annotation.CurrentUser;
import com.softa.dao.model.SysUser;
import com.softa.service.system.ResourceService;
import com.softa.service.system.UserService;
import com.softa.utils.Constants;
import com.softa.web.controller.base.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.annotation.Resource;

/**
 * 首页
 */
@Controller
@RequestMapping("/custom/index")
public class CustomIndexController extends BaseController {

    @Resource
    private ResourceService resourceService;
    @Resource
    private UserService userService;

    @RequestMapping()
    public String index(@CurrentUser SysUser loginUser, Model model) {
        return Constants.MENU_FRONT+"/index";
    }


    @RequestMapping("footer")
    public String footer(@CurrentUser SysUser loginUser, Model model) {
        return Constants.MENU_FRONT+"/footer";
    }


}
